how a phaser works